package View;

import javax.swing.*;

import java.awt.GridLayout;

import Controller.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.GroupLayout.Alignment;


public class SistemadeBackup extends JPanel{

	JPanel SistemaBackup;
	
	public SistemadeBackup() {
		setLayout(new GridLayout(0, 1, 0, 0));
		SistemaBackup = new JPanel();
		
		SistemaBackup.setBorder(BorderFactory.createTitledBorder("SISTEMA DE BACKUP"));
		SistemaBackup.setBackground(null);
		add(SistemaBackup);
		
		
		
		JButton exportar = new JButton("EXPORTAR");
		exportar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				MySQLBackup b = new MySQLBackup();
				
			}
		});
		
		
		JButton importar = new JButton("IMPORTAR");
		importar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {

			}
		});
		GroupLayout gl_SistemaBackup = new GroupLayout(SistemaBackup);
		gl_SistemaBackup.setHorizontalGroup(
			gl_SistemaBackup.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_SistemaBackup.createSequentialGroup()
					.addContainerGap()
					.addComponent(exportar)
					.addGap(27)
					.addComponent(importar)
					.addContainerGap(231, Short.MAX_VALUE))
		);
		gl_SistemaBackup.setVerticalGroup(
			gl_SistemaBackup.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_SistemaBackup.createSequentialGroup()
					.addGroup(gl_SistemaBackup.createParallelGroup(Alignment.BASELINE)
						.addComponent(exportar)
						.addComponent(importar))
					.addContainerGap(250, Short.MAX_VALUE))
		);
		SistemaBackup.setLayout(gl_SistemaBackup);

	}
	
	

}
